<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title>编辑文章</title>
    <base href="<?php echo base_url();?>">
    <link rel="stylesheet" href="./style/admin/css/public.css" />
    <script type="text/javascript" src="./style/admin/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="./style/admin/js/public.js"></script>
    <script type="text/javascript" src="./style/admin/js/cate.js"></script>
    <style type="text/css">
        .error{
            color: red;
        }
    </style>
</head>
<body>
    <table class="table">
        <tr class="th">
            <td width="5%" align="center">ID</td>
            <td width="50%" align="center">栏目名称</td>
            <td width="10%" colspan="2" align="center">操作</td>
        </tr>
        <?php
            foreach($cate_table as $row){
                echo "<tr id=\"{$row['cid']}\">";
                echo "<td class=\"cid\" >{$row['cid']}</td>";
                echo "<td class=\"cname\">{$row['cname']}</td>";
                echo '<td align="center"><button class="input_button edit_button">编辑</button></td>';
                echo '<td align="center"><button type="button" class="input_button del">删除</button></td>';
                echo '</tr>';
            }
        ?>
        <tr>
            <td colspan="2" align="right"><a href="./admin/cate/add_cate.html" class="input_button">添加</a></td>
        </tr>
    </table>

</body>
</html>